package com.zl.tby.core.base.bean;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author sunjiaxing
 * @version 1.0
 * @since 2024/8/11 16:03
 */
@Data
public class OptionTypeLevel {
    private Long code;
    private Long level;
    /**分类名称*/
    private String levelName;
    /**上级分类*/
    private Long parentId;
    /**上级分类集合*/
    private String parentIds;
    /**级别集合名称*/
    private String levelNames;
    private List<OptionTypeLevel> children;

    public OptionTypeLevel(Long code, String levelName, Long parentId, String parentIds, String levelNames,Long level) {
        this.code = code;
        this.levelName = levelName;
        this.parentId = parentId;
        this.parentIds = parentIds;
        this.levelNames = levelNames;
        this.level = level;
        this.children = new ArrayList<>();
    }

    public OptionTypeLevel(Long code, String levelName, Long parentId, String parentIds, String levelNames,Long level, List<OptionTypeLevel> children) {
        this.code = code;
        this.levelName = levelName;
        this.parentId = parentId;
        this.parentIds = parentIds;
        this.levelNames = levelNames;
        this.level = level;
        this.children = children;
    }
}
